package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：开户行
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:    开户行
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_SYS_KHH")
@Where(clause = "deleted!='1'")
public class Khh extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqKhh", allocationSize = 1, sequenceName = "SEQ_SYS_KHH")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqKhh")
    private Long id;

    /**
     * 开户行全称
     */
    private String qc;

    /**
     * 开户行简称
     */
    private String jc;

    /**
     * 开户行账号
     */
    private String zh;

    /**
     * 账户类型(存款，保证金)
     */
    @ManyToOne
    @JoinColumn(name = "ZHLX_SJZDZ_ID")
    private Sjzdz zhlx;

/*
    */
/**
     * 存款核算科目
     *//*

    private String ckhskm;

    */
/**
     * 保证金核算科目
     *//*

    private String bzjhskm;
*/

    /**
     * 联系电话
     */
    private String lxdh;

    /**
     * 排序号
     */
    private Long pxh;

    /**
     * 内部公司
     */
    @ManyToOne
    @JoinColumn(name = "NBGS_ID")
    private Nbgs nbgs;

   /*
   企业法人
    */

 /*   @ManyToOne
    @JoinColumn(name = "QYFR_ID")
    private Qyfr qyfr;*/
    /**
     * 企业机构
     */
    @ManyToOne
    @JoinColumn(name = "QYJG_ID")
    private Qyjg qyjg;
    /**
     * 科目代码
     */
    private String kmdm;

    /**
     * 财务银行导入时候需要的导入字号
     */
    private String drzh ;

    //  供应商辅助核算代码
    private String gysfzhsdm;
    //客户辅助核算代码
    private String khfzhsdm;

    /**
     * 可用余额
     */
    private Double kyye;

    /**
     * 金额
     */
    private Double je;

    /**
     * 授信额
     */
    private Double sxe;



    @Version
    private Long version;

    public String getKhfzhsdm() {
        return khfzhsdm;
    }

    public void setKhfzhsdm(String khsfzhsdm) {
        this.khfzhsdm = khsfzhsdm;
    }

    public String getGysfzhsdm() {
        return gysfzhsdm;
    }

    public void setGysfzhsdm(String gysfzhsdm) {
        this.gysfzhsdm = gysfzhsdm;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getQc() {
        return qc;
    }

    public void setQc(String qc) {
        this.qc = qc;
    }

    public String getJc() {
        return jc;
    }

    public void setJc(String jc) {
        this.jc = jc;
    }

    public String getZh() {
        return zh;
    }

    public void setZh(String zh) {
        this.zh = zh;
    }

    public Sjzdz getZhlx() {
        return zhlx;
    }

    public void setZhlx(Sjzdz zhlx) {
        this.zhlx = zhlx;
    }

  /*  public String getCkhskm() {
        return ckhskm;
    }

    public void setCkhskm(String ckhskm) {
        this.ckhskm = ckhskm;
    }

    public String getBzjhskm() {
        return bzjhskm;
    }

    public void setBzjhskm(String bzjhskm) {
        this.bzjhskm = bzjhskm;
    }*/

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    public Long getPxh() {
        return pxh;
    }

    public void setPxh(Long pxh) {
        this.pxh = pxh;
    }

    public Nbgs getNbgs() {
        return nbgs;
    }

    public void setNbgs(Nbgs nbgs) {
        this.nbgs = nbgs;
    }

    public Qyjg getQyjg() {
        return qyjg;
    }

    public void setQyjg(Qyjg qyjg) {
        this.qyjg = qyjg;
    }

    public String getKmdm() {
        return kmdm;
    }

    public void setKmdm(String kmdm) {
        this.kmdm = kmdm;
    }

    public String getDrzh() {
        return drzh;
    }

    public void setDrzh(String drzh) {
        this.drzh = drzh;
    }

    public Double getKyye() {
        return kyye;
    }

    public void setKyye(Double kyye) {
        this.kyye = kyye;
    }

    public Double getJe() {
        return je;
    }

    public void setJe(Double je) {
        this.je = je;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Double getSxe() {
        return sxe;
    }

    public void setSxe(Double sxe) {
        this.sxe = sxe;
    }
}
